#ifndef VIEWERMAINWINDOW_H
#define VIEWERMAINWINDOW_H

#include <QMainWindow>
#include <QMessageBox>
#include "Viewer.h"
#include "ElementData.h"
#include "Element.h"
#include "NetworkThread.h"

namespace Ui {
    class ViewerMainWindow;
}

class ViewerMainWindow : public QMainWindow
{
    Q_OBJECT
    Viewer *viewer;
    Element *plane;
    NetworkThread *serverThread;

public:
    explicit ViewerMainWindow(QWidget *parent = 0);
    ~ViewerMainWindow();

private:
    Ui::ViewerMainWindow *ui;

public slots:
    void changeFPS(int);
    void connectButtonClicked();
    void disconnectButtonClicked();
    void changeElements(float*);
    void addElement(ElementData*);
    void networkError(QString);
};

#endif // VIEWERMAINWINDOW_H
